import { userDetail } from "@/apis";
// @ts-ignore
import { EGender, EUserType } from "@/types";

export const aa = () => userDetail(22);

/**
 * 季节
 * TODO:
 */
export enum ESeason {
  /**
   * 春
   */
  SPR = "spr",
  /**
   * 夏
   */
  SUM = "sum",
  /**
   * 秋
   */
  AUT = "aut",
  /**
   * 冬
   */
  WIN = "win",
}

/**
 * 年份
 */
export const YEAR_OPTS = (() => {
  const start = 2020;
  const end = new Date().getFullYear() + 1;
  const opts: {
    label: string;
    value: any;
  }[] = [];
  for (let i = start; i <= end; i++) {
    opts.push({
      label: i + "",
      value: i + "",
    });
  }
  return opts;
})();

/**
 * 季节
 */
export const SEASON_OPTS = [
  {
    label: "春",
    value: ESeason.SPR,
  },
  {
    label: "夏",
    value: ESeason.SUM,
  },
  {
    label: "秋",
    value: ESeason.AUT,
  },
  {
    label: "冬",
    value: ESeason.WIN,
  },
];

/**
 * 补货使用季节
 */
export const SEASON_REP = [
  {
    label: "春",
    value: "春",
  },
  {
    label: "夏",
    value: "夏",
  },
  {
    label: "秋",
    value: "秋",
  },
  {
    label: "冬",
    value: "冬",
  },
];

/**
 * 月份
 */
export const MONTH_OPTS = new Array(12).fill(1).map((_: void, idx: number) => ({
  label: idx + 1 + "月",
  value: idx + 1,
}));

/**
 * 性别选项
 */
export const GENDER_OPTS = [
  {
    label: "男",
    value: EGender.MALE,
  },
  {
    label: "女",
    value: EGender.FEMALE,
  },
];

/**
 * 用户类型选项
 */
export const USERTYPE_OPTS = [
  {
    label: "普通用户",
    value: EUserType.NORMAL,
  },
  {
    label: "店员",
    value: EUserType.SHOP,
  },
  {
    label: "品牌",
    value: EUserType.BRAND,
  },
  {
    label: "管理员",
    value: EUserType.ADMIN,
  },
];

/**
 * 占位选项
 */
export const placeHolderOpts = [
  {
    label: "是",
    value: 1,
  },
  {
    label: "否",
    value: 0,
  },
];

/**
 * 占位选项
 */
export const useOpts = [
  {
    label: "是",
    value: 1,
  },
  {
    label: "否",
    value: 2,
  },
];

/**
 * 表单必填rules
 */
export const requiredRules = [
  {
    required: true,
    message: "必填",
  },
];

/**
 * 空状态图片
 */
export const EMPTY_IMG =
  "";

/**
 * 组件枚举
 */
export enum EComp {
  /**
   * 输入框
   */
  INPUT = "input",
  InputTag = "InputTag",
  /**
   * 数字输入
   */
  NUMBER = "num",
  /**
   * 密码框
   */
  PWD = "input-pwd",
  /**
   * 下拉选择
   */
  SELECT = "select",
  /**
   * 文本
   */
  TXT = "txt",
  /**
   * 文本域
   */
  TEXT = "text",
  /**
   * 开关
   */
  SWITCH = "switch",
  /**
   * 可选项
   */
  RADIO = "radio",
  /**
   * 上传
   */
  UPLOAD = "upload",
  /**
   * 日期选择
   */
  DATE_PICKER = "datepicker",
  /**
   * 下拉选择树
   */
  SELECT_TREE = "selecttree",
  /**
   * 年份选择器
   */
  YEAR_PICKER = "YEAR_PICKER",
  /**
   * 月份选择器
   */
  MONTH_PICKER = "MONTH_PICKER",
  /**
   *
   */
  RANGE_PICKER = "RANGE_PICKER",
  /**
   * 级联选择
   */
  Cascader = "Cascader",
}

/**
 * 月份
 */
export const monthCh = [
  "一月",
  "二月",
  "三月",
  "四月",
  "五月",
  "六月",
  "七月",
  "八月",
  "九月",
  "十月",
  "十一月",
  "十二月",
];

/**
 * 季节
 */
export const seasonCh = ["春", "夏", "秋", "冬"];

export const relatedType = [
  { label: "市级别相似", value: 20 },
  { label: "省级别相似", value: 30 },
  { label: "体系级别相似", value: 80 },
  { label: "渠道级别相似", value: 40 },
  { label: "全体级别相似", value: 50 },
  { label: "手动指定店铺", value: 60 },
  { label: "随机指定店铺", value: 70 },
];

/**
 * 波段
 */
export const WAVES = [
  "1A",
  "1B",
  "1C",
  "2A",
  "2B",
  "2C",
  "3A",
  "3B",
  "3C",
  "4A",
  "4B",
  "4C",
  "5A",
  "5B",
  "5C",
  "6A",
  "6B",
  "6C",
  "7A",
  "7B",
  "7C",
  "8A",
  "8B",
  "8C",
  "9A",
  "9B",
  "9C",
  "10A",
  "10B",
  "10C",
  "11A",
  "11B",
  "11C",
  "12A",
  "12B",
  "12C",
];

/**
 * 波段设置页面 区域筛选
 */
export const AreaOp = [
  {
    label: "华北",
    value: "华北",
  },
  {
    label: "华东",
    value: "华东",
  },
  {
    label: "华南",
    value: "华南",
  },
  {
    label: "直营",
    value: "直营",
  },
];

/**
 * 主推页面对象类型
 */
export const ObjectType = [
  {
    label: "正价货品",
    value: 1,
  },
  {
    label: "奥莱货品",
    value: 2,
  },
];

/**
 * 波段上市配置中的 系列下拉
 */
export const SeriesType = [
  {
    label: "WOMAN",
    value: "WOMAN",
  },
  {
    label: "DELICACY",
    value: "DELICACY",
  },
  {
    label: "PARTY",
    value: "PARTY",
  },
  {
    label: "Accessory",
    value: "Accessory",
  },
  {
    label: "ELEGANCE",
    value: "ELEGANCE",
  },
  {
    label: "O-Exclusive",
    value: "O-Exclusive",
  },
  {
    label: "Online",
    value: "Online",
  },
  {
    label: "高定",
    value: "高定",
  },
  {
    label: "专供",
    value: "专供",
  },
  {
    label: "道具",
    value: "道具",
  },
  {
    label: "样衣",
    value: "样衣",
  },
  {
    label: "香町",
    value: "香町",
  },
  {
    label: "Art",
    value: "Art",
  },
];

//
export const SIZE = ['xs', 's', 'm', 'l', 'xl', 'xxl'];
